package com.softeem.service;

import com.softeem.bean.CartItem;
import com.softeem.utils.Page;

import java.sql.SQLException;
import java.util.Map;

public interface CartItemService {
    public Map addItem(CartItem cartItem, Integer bookId)throws SQLException;
    public void deleteItem(Integer id) throws SQLException;
    public void clear(Integer uid)throws SQLException;
    public void updateCount(Integer id,Integer count , Double totalPrice)throws SQLException;

    public CartItem findByNameAndUid(String name,Integer uid)throws SQLException;

    public Page<CartItem> page(Integer pageNo ,Integer pageSize , Integer uid )throws SQLException;


}
